import xadmin
# from django.apps import AppConfig
from django.apps import AppConfig

from .models import Banner
class BannerModelAdmin:
    list_display = ['id','name','link','is_show','start_time','end_time']
xadmin.site.register(Banner,BannerModelAdmin)

from .models import Nav
class NavModelAdmin(object):
    list_display=["name","link","is_http"]
xadmin.site.register(Nav, NavModelAdmin)

